package test1223;

public class Test11 {
    public static void main(String[] args) {

        // ABCDE=4*EDCBA;其中，A、B、C、D、E都是1-9中的数字。问这5个数字都是多少。
        for (int A = 1; A < 10; A++) {
            for (int B = 1; B < 10; B++) {
                for (int C = 1; C < 10; C++) {
                    for (int D = 1; D < 10; D++) {
                        for (int E = 1; E < 10; E++) {
                            if(A*10000+B*1000+C*100+D*10+E==(E*10000+D*1000+C*100+B*10+A)*4){
                                System.out.println("A = "+A + " B = "+B + " C = "+C + " D = "+D + " E = "+E);
                            }
                        }
                    }
                }
            }
        }
    }
}